﻿using HiSport.Core.Enum;
using HiSportApplet.Core.Entity;
using SqlSugar;

namespace HiSport.Core.Entity.Bas
{


    /// <summary>
    /// 计费规则详情
    /// </summary>
    [SugarTable(null, "计费规则详情")]
    public class BasBillingRuleInfo: EntityBase
    {
        /// <summary>
        /// 计费规则主Id
        /// </summary>
        [SugarColumn(ColumnDescription = "计费规则主Id", DefaultValue = "0", IsNullable = false)]
        public long BillingRuleId { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        [SugarColumn(ColumnDescription = "开始时间", DefaultValue = "0", IsNullable = false)]
        public int  StartTime { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        [SugarColumn(ColumnDescription = "结束时间", DefaultValue = "0", IsNullable = false)]
        public int EndTime { get; set; }

        /// <summary>
        /// 普通会员价格
        /// </summary>
        [SugarColumn(ColumnDescription = "价格", DefaultValue = "0", ColumnDataType = "decimal(18,2)", IsNullable = false)]
        public decimal Price { get; set; }

        /// <summary>
        /// vip价格类型  0：统一设置  1：详细设置
        /// </summary>
        [SugarColumn(ColumnDescription = " 会员价格类型  0：统一设置  1：详细设置", DefaultValue = "0", IsNullable = false)]
        public MemberPriceTypeEnum MemberPriceType { get; set; }

        /// <summary>
        /// VIP统一会员价格
        /// </summary>
        [SugarColumn(ColumnDescription = "会员统一价格", DefaultValue = "0", ColumnDataType = "decimal(18,2)", IsNullable = false)]
        public decimal MemberUnifyPrice { get; set; }


    }
}
